<!DOCTYPE html>
<HTML>
<HEAD><meta name="viewport" content="width=device-width, initial-scale=1">
<Title>FinanceChart</Title>
<link type='text/css' rel='Stylesheet' href="maxchartapi.css" />
</HEAD>
<body bgcolor="#FFFFFF" text="#000000" topmargin="0" leftmargin="0" rightmargin="0" marginwidth="0" marginheight="0">

<p class="heading0">ChartDirector 7.0 (Java Edition)</p>
<p class="heading1">FinanceChart</p>
<hr class="separator">
<div class="content">
FinanceChart is a financial charting library built on top of the main ChartDirector library. It extends <a href="MultiChart.htm">MultiChart</a> by implementing many financial indicators, and allowing complex financial charts to be composed easily.
</div><p class="heading1a">Key Features</p><div class="content">
<ul> <li><b>Arbitrary Financial Chart Composition</b>: Allows a complex financial chart to be constructed by stacking a main financial chart with arbitrary number of indicator charts in any order.<br><br>
<li><b>Main Chart Layers</b>: The main chart can show information in Candlestick or OHLC, and/or various price lines, such as closing price line, weighted close line, typical price line or median price line.<br><br>
<li><b>Main Chart Layers</b>: Add additional data series (eg. series of other stock prices, or a market index) for comparison with the closing price.<br><br>
<li><b>Moving Averages</b>: Chart can include arbitrary number of moving average lines of configurable types and periods. Supports simple, exponential, triangular and weighted moving averages.<br><br>
<li><b>Parabolic SAR</b>: A parabolic SAR indicator can be added to the main price chart.<br><br>
<li><b>Bands and Envelops</b>: Built-in Bollinger Band layer, Donchian Channel layer, and moving average envelops. Also supports custom-defined bands.<br><br>
<li><b>Volume Bars</b>: Volume Bars can be displayed as part of the main chart, or as a separate indicator chart.<br><br>
<li><b>Axis Styles</b>: Axis can be log or linear scale, and can display on left or right side of the chart.<br><br>
<li><b>Built-In Indicators</b>: Accumulation/Distribution, Aroon Up/Down, Aroon Oscillator, Average Directional Index, Average True Range (including raw True Range), Bollinger Band Width, Commodity Channel Index, Chaikin Money Flow, Chaikin Oscillator, Chaikin Volatility, Close Location Value, Detrended Price Oscillator, Donchian Channel Width, Ease of Movement, Fast Stochastic, MACD, Mass Index, Money Flow Index, Momentum, Negative Volume Index, On Balance Volume, Performance, Percentage Price Oscillator, Positive Volume Index, Percentage Volume Oscillator, Price Volume Trend, Rate of Change, Relative Strength Index, Slow Stochastic, Standard Deviation, Stochastic RSI, TRIX, Ultimate Oscillator, Volume, William %R.<br><br>
<li><b>Custom Lines and Indicators</b>: Extensible design allows developers to implement additional lines and indicator types.<br><br>
<li><b>Customizable Look and Feel</b>: Preserves the flexibility and power of the ChartDirector API. Background images, custom text boxes, logos, fonts and colors, etc., are all customizable. </ul>
</div><p class="heading1a">Using FinanceChart</p><div class="content">
To use FinanceChart, the first step is to create an instance of <a href="FinanceChart.FinanceChart.htm">FinanceChart</a>. Next, you may add data to it using <a href="FinanceChart.setData.htm">setData</a>. After that, you may add the main chart (<a href="FinanceChart.addMainChart.htm">addMainChart</a>) and other indicator charts to display the data graphically. These charts may be added in any order.<br><br>
For the main chart, you may:<br><br>
<ul> <li>Display price information using Candlesticks (<a href="FinanceChart.addCandleStick.htm">addCandleStick</a>) or HLOC (<a href="FinanceChart.addHLOC.htm">addHLOC</a>) symbols<br><br>
<li>Add various price lines (<a href="FinanceChart.addCloseLine.htm">addCloseLine</a>, <a href="FinanceChart.addWeightedClose.htm">addWeightedClose</a>, <a href="FinanceChart.addTypicalPrice.htm">addTypicalPrice</a>, <a href="FinanceChart.addMedianPrice.htm">addMedianPrice</a>)<br><br>
<li>Add additional data series (eg. series of other stock prices, or a market index) for comparison with the closing price.(<a href="FinanceChart.addComparison.htm">FinanceChart.addComparison</a>)<br><br>
<li>Add moving average lines of different types and periods (<a href="FinanceChart.addSimpleMovingAvg.htm">addSimpleMovingAvg</a>, <a href="FinanceChart.addExpMovingAvg.htm">addExpMovingAvg</a>, <a href="FinanceChart.addTriMovingAvg.htm">addTriMovingAvg</a>, <a href="FinanceChart.addWeightedMovingAvg.htm">addWeightedMovingAvg</a>)<br><br>
<li>Add Parabolic SAR (<a href="FinanceChart.addParabolicSAR.htm">addParabolicSAR</a>)<br><br>
<li>Add price bands or envelops: (<a href="FinanceChart.addBollingerBand.htm">addBollingerBand</a>, <a href="FinanceChart.addDonchianChannel.htm">addDonchianChannel</a>, <a href="FinanceChart.addEnvelop.htm">addEnvelop</a>)<br><br>
<li>Add custom lines or bands (<a href="FinanceChart.addLineIndicator2.htm">addLineIndicator2</a>, <a href="FinanceChart.addBand.htm">addBand</a>)<br><br>
<li>Add volume bars (<a href="FinanceChart.addVolBars.htm">addVolBars</a>) </ul>
For indicator charts, FinanceChart includes a wide variety of indicators. Please refer to the table below for details. You may also add your own custom indicator chart using <a href="FinanceChart.addLineIndicator.htm">addLineIndicator</a> and <a href="FinanceChart.addBarIndicator.htm">addBarIndicator</a>.<br><br>
In addition to chart building methods, FinanceChart also has a number of chart formatting methods, such as <a href="FinanceChart.addPlotAreaTitle.htm">addPlotAreaTitle</a> to add chart title, <a href="FinanceChart.setPlotAreaStyle.htm">setPlotAreaStyle</a> to control background color and grid lines, <a href="FinanceChart.setDateLabelFormat.htm">setDateLabelFormat</a> to control date/time formatting, etc.<br><br>
Furthermore, as FinanceChart is a subclass of <a href="MultiChart.htm">MultiChart</a>, and the main and indicator charts are implemented as <a href="XYChart.htm">XYChart</a> objects, they can use the powerful ChartDirector API for formatting (eg. background images, custom logos, custom text boxes, metallic colors, etc).
</div><p class="heading1a">FinanceChart Source Code</p><div class="content">
To serve as an example of how to build an application specific chart library on top of ChartDirector, the source code of FinanceChart is opened. It is in the "[ChartDirector]/javaFinanceChart"  directory.<br><br>
The source code will put FinanceChart in the "Custom" package, so it will become "Custom.FinanceChart" instead of "ChartDirector.FinanceChart". If you change the name, please do not use "ChartDirector" as the package name. This is to avoid conflicting with current or future versions of ChartDirector.
</div><p class="heading1a">FinanceChart Methods</p><div class="content">
<div style="width:100%;box-sizing:border-box;">
<table border="1" cellpadding="5" cellspacing="0" width="100%"> 
<tr>
<th width="19%">Method</th><th width="19%">Inherited</th><th>Description</th>
</tr>
<tr>
<td><a href="FinanceChart.FinanceChart.htm">FinanceChart</a></td><td>(Self)</td><td>Creates a new <a href="FinanceChart.htm">FinanceChart</a> object.</td></tr><tr><td><a href="FinanceChart.enableAntiAlias.htm">enableAntiAlias</a></td><td>(Self)</td><td>Enables/Disables anti-alias.</td></tr><tr><td><a href="FinanceChart.setMargins.htm">setMargins</a></td><td>(Self)</td><td>Sets the margins around the plot area. The default is 40 pixels for the left and right margins, and 30 pixels for the top and bottom margins.</td></tr><tr><td><a href="FinanceChart.addPlotAreaTitle.htm">addPlotAreaTitle</a></td><td>(Self)</td><td>Adds a text title above the plot area. You may add multiple title above the plot area by calling this method multiple times.</td></tr><tr><td><a href="FinanceChart.setPlotAreaStyle.htm">setPlotAreaStyle</a></td><td>(Self)</td><td>Sets the plot area background and grid colors. The default is a white background with light grey (DDDDDD) grid lines.</td></tr><tr><td><a href="FinanceChart.setPlotAreaBorder.htm">setPlotAreaBorder</a></td><td>(Self)</td><td>Sets the plot area border color and the gap distance between charts. The default is a grey (888888) border with two 2 pixels gap between charts.</td></tr><tr><td><a href="FinanceChart.setLegendStyle.htm">setLegendStyle</a></td><td>(Self)</td><td>Sets legend font style and background color. The default is Arial 8 pt black font on a semi-transparent light grey (80CCCCCC) background.</td></tr><tr><td><a href="FinanceChart.setXAxisStyle.htm">setXAxisStyle</a></td><td>(Self)</td><td>Sets x-axis label style. The default is Arial 8 pt black color as font with no text rotation.</td></tr><tr><td><a href="FinanceChart.setYAxisStyle.htm">setYAxisStyle</a></td><td>(Self)</td><td>Sets y-axis label style. The default is Arial 8 pt black color, with 14 pixels margin.</td></tr><tr><td><a href="FinanceChart.setAxisOnRight.htm">setAxisOnRight</a></td><td>(Self)</td><td>Sets whether the main y-axis is on right of left side of the plot area. The default is on right.</td></tr><tr><td><a href="FinanceChart.setLogScale.htm">setLogScale</a></td><td>(Self)</td><td>Determines if log scale should be used for the main chart. The default is to use linear scale.</td></tr><tr><td><a href="FinanceChart.setPercentageAxis.htm">setPercentageAxis</a></td><td>(Self)</td><td>Label the axis of the main chart in percentage unit.</td></tr><tr><td><a href="FinanceChart.setDateLabelFormat.htm">setDateLabelFormat</a></td><td>(Self)</td><td>Sets the date/time formats to use for the x-axis labels under various cases.</td></tr><tr><td><a href="FinanceChart.setDateLabelSpacing.htm">setDateLabelSpacing</a></td><td>(Self)</td><td>Sets the minimum label spacing between two labels on the time axis.</td></tr><tr><td><a href="FinanceChart.setToolTipDateFormat.htm">setToolTipDateFormat</a></td><td>(Self)</td><td>Sets the date/time formats to use for the tool tips under various cases.</td></tr><tr><td><a href="FinanceChart.getToolTipDateFormat.htm">getToolTipDateFormat</a></td><td>(Self)</td><td>Gets the date/time format string to use for tool tips.</td></tr><tr><td><a href="FinanceChart.setNumberLabelFormat.htm">setNumberLabelFormat</a></td><td>(Self)</td><td>Sets the number format to use.</td></tr><tr><td><a href="FinanceChart.setData.htm">setData</a></td><td>(Self)</td><td>Sets the data to be used in the chart.</td></tr><tr><td><a href="FinanceChart.addMainChart.htm">addMainChart</a></td><td>(Self)</td><td>Adds the main chart - the chart that shows the data for the prices.</td></tr><tr><td><a href="FinanceChart.addCandleStick.htm">addCandleStick</a></td><td>(Self)</td><td>Adds a candlestick layer to the main chart.</td></tr><tr><td><a href="FinanceChart.addHLOC.htm">addHLOC</a></td><td>(Self)</td><td>Adds a HLOC layer to the main chart.</td></tr><tr><td><a href="FinanceChart.addCloseLine.htm">addCloseLine</a></td><td>(Self)</td><td>Adds a closing price line on the main chart.</td></tr><tr><td><a href="FinanceChart.addWeightedClose.htm">addWeightedClose</a></td><td>(Self)</td><td>Adds a weighted close line on the main chart.</td></tr><tr><td><a href="FinanceChart.addTypicalPrice.htm">addTypicalPrice</a></td><td>(Self)</td><td>Adds a typical price line on the main chart.</td></tr><tr><td><a href="FinanceChart.addMedianPrice.htm">addMedianPrice</a></td><td>(Self)</td><td>Adds a median price line on the main chart.</td></tr><tr><td><a href="FinanceChart.addComparison.htm">addComparison</a></td><td>(Self)</td><td>Adds a data series to the main chart for comparison with the closing price.</td></tr><tr><td><a href="FinanceChart.addSimpleMovingAvg.htm">addSimpleMovingAvg</a></td><td>(Self)</td><td>Adds a simple moving average line on the main chart.</td></tr><tr><td><a href="FinanceChart.addExpMovingAvg.htm">addExpMovingAvg</a></td><td>(Self)</td><td>Adds an exponential moving average line on the main chart.</td></tr><tr><td><a href="FinanceChart.addTriMovingAvg.htm">addTriMovingAvg</a></td><td>(Self)</td><td>Adds a triangular moving average line on the main chart.</td></tr><tr><td><a href="FinanceChart.addWeightedMovingAvg.htm">addWeightedMovingAvg</a></td><td>(Self)</td><td>Adds a weighted moving average line on the main chart.</td></tr><tr><td><a href="FinanceChart.addParabolicSAR.htm">addParabolicSAR</a></td><td>(Self)</td><td>Adds a parabolic SAR indicator to the main chart.</td></tr><tr><td><a href="FinanceChart.addBand.htm">addBand</a></td><td>(Self)</td><td>Adds a generic band to the main finance chart. This method is used internally by other methods to add various bands (eg. Bollinger band, Donchian channels, etc).</td></tr><tr><td><a href="FinanceChart.addBollingerBand.htm">addBollingerBand</a></td><td>(Self)</td><td>Adds a Bollinger band to the main chart.</td></tr><tr><td><a href="FinanceChart.addDonchianChannel.htm">addDonchianChannel</a></td><td>(Self)</td><td>Adds a Donchian channel to the main chart.</td></tr><tr><td><a href="FinanceChart.addEnvelop.htm">addEnvelop</a></td><td>(Self)</td><td>Adds a price envelop to the main chart. The price envelop is a defined as a ratio around a moving average. For example, a ratio of 0.2 means 20% above and below the moving average.</td></tr><tr><td><a href="FinanceChart.addVolBars.htm">addVolBars</a></td><td>(Self)</td><td>Adds a volume bar chart layer on the main chart.</td></tr><tr><td><a href="FinanceChart.addIndicator.htm">addIndicator</a></td><td>(Self)</td><td>Adds a blank indicator chart to the finance chart. Used internally to add other indicators. Override to change the default formatting (eg. axis fonts, etc.) of the various indicators.</td></tr><tr><td><a href="FinanceChart.addLineIndicator.htm">addLineIndicator</a></td><td>(Self)</td><td>Adds a generic line indicator chart.</td></tr><tr><td><a href="FinanceChart.addLineIndicator2.htm">addLineIndicator2</a></td><td>(Self)</td><td>Adds a line to an existing indicator chart.</td></tr><tr><td><a href="FinanceChart.addBarIndicator.htm">addBarIndicator</a></td><td>(Self)</td><td>Adds a generic bar indicator chart.</td></tr><tr><td><a href="FinanceChart.addBarIndicator2.htm">addBarIndicator2</a></td><td>(Self)</td><td>Adds a bar layer to an existing indicator chart.</td></tr><tr><td><a href="FinanceChart.addThreshold.htm">addThreshold</a></td><td>(Self)</td><td>Adds an upper/lower threshold range to an existing indicator chart.</td></tr><tr><td><a href="FinanceChart.addAccDist.htm">addAccDist</a></td><td>(Self)</td><td>Adds an Accumulation/Distribution indicator chart.</td></tr><tr><td><a href="FinanceChart.addAroon.htm">addAroon</a></td><td>(Self)</td><td>Adds an Aroon Up/Down indicators chart.</td></tr><tr><td><a href="FinanceChart.addAroonOsc.htm">addAroonOsc</a></td><td>(Self)</td><td>Adds an Aroon Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addADX.htm">addADX</a></td><td>(Self)</td><td>Adds an Average Directional Index indicators chart.</td></tr><tr><td><a href="FinanceChart.addATR.htm">addATR</a></td><td>(Self)</td><td>Adds an Average True Range indicators chart.</td></tr><tr><td><a href="FinanceChart.addBollingerWidth.htm">addBollingerWidth</a></td><td>(Self)</td><td>Adds a Bollinger Band Width indicator chart.</td></tr><tr><td><a href="FinanceChart.addCCI.htm">addCCI</a></td><td>(Self)</td><td>Adds a Community Channel Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addChaikinMoneyFlow.htm">addChaikinMoneyFlow</a></td><td>(Self)</td><td>Adds a Chaikin Money Flow indicator chart.</td></tr><tr><td><a href="FinanceChart.addChaikinOscillator.htm">addChaikinOscillator</a></td><td>(Self)</td><td>Adds a Chaikin Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addChaikinVolatility.htm">addChaikinVolatility</a></td><td>(Self)</td><td>Adds a Chaikin Volatility indicator chart.</td></tr><tr><td><a href="FinanceChart.addCLV.htm">addCLV</a></td><td>(Self)</td><td>Adds a Close Location Value indicator chart.</td></tr><tr><td><a href="FinanceChart.addDPO.htm">addDPO</a></td><td>(Self)</td><td>Adds a Detrended Price Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addDonchianWidth.htm">addDonchianWidth</a></td><td>(Self)</td><td>Adds a Donchian Channel Width indicator chart.</td></tr><tr><td><a href="FinanceChart.addEaseOfMovement.htm">addEaseOfMovement</a></td><td>(Self)</td><td>Adds a Ease of Movement indicator chart.</td></tr><tr><td><a href="FinanceChart.addFastStochastic.htm">addFastStochastic</a></td><td>(Self)</td><td>Adds a Fast Stochastic indicator chart.</td></tr><tr><td><a href="FinanceChart.addMACD.htm">addMACD</a></td><td>(Self)</td><td>Adds a MACD indicator chart.</td></tr><tr><td><a href="FinanceChart.addMassIndex.htm">addMassIndex</a></td><td>(Self)</td><td>Adds a Mass Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addMFI.htm">addMFI</a></td><td>(Self)</td><td>Adds a Money Flow Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addMomentum.htm">addMomentum</a></td><td>(Self)</td><td>Adds a Momentum indicator chart.</td></tr><tr><td><a href="FinanceChart.addNVI.htm">addNVI</a></td><td>(Self)</td><td>Adds a Negative Volume Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addOBV.htm">addOBV</a></td><td>(Self)</td><td>Adds an On Balance Volume indicator chart.</td></tr><tr><td><a href="FinanceChart.addPerformance.htm">addPerformance</a></td><td>(Self)</td><td>Adds a Performance indicator chart.</td></tr><tr><td><a href="FinanceChart.addPPO.htm">addPPO</a></td><td>(Self)</td><td>Adds a Percentage Price Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addPVI.htm">addPVI</a></td><td>(Self)</td><td>Adds a Positive Volume Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addPVO.htm">addPVO</a></td><td>(Self)</td><td>Adds a Percentage Volume Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addPVT.htm">addPVT</a></td><td>(Self)</td><td>Adds a Price Volume Trend indicator chart.</td></tr><tr><td><a href="FinanceChart.addROC.htm">addROC</a></td><td>(Self)</td><td>Adds a Rate of Change indicator chart.</td></tr><tr><td><a href="FinanceChart.addRSI.htm">addRSI</a></td><td>(Self)</td><td>Adds a Relative Strength Index indicator chart.</td></tr><tr><td><a href="FinanceChart.addSlowStochastic.htm">addSlowStochastic</a></td><td>(Self)</td><td>Adds a Slow Stochastic indicator chart.</td></tr><tr><td><a href="FinanceChart.addStdDev.htm">addStdDev</a></td><td>(Self)</td><td>Adds a Moving Standard Deviation indicator chart.</td></tr><tr><td><a href="FinanceChart.addStochRSI.htm">addStochRSI</a></td><td>(Self)</td><td>Adds a Stochastic RSI indicator chart.</td></tr><tr><td><a href="FinanceChart.addTRIX.htm">addTRIX</a></td><td>(Self)</td><td>Adds a TRIX indicator chart.</td></tr><tr><td><a href="FinanceChart.addUltimateOscillator.htm">addUltimateOscillator</a></td><td>(Self)</td><td>Adds an Ultimate Oscillator indicator chart.</td></tr><tr><td><a href="FinanceChart.addVolIndicator.htm">addVolIndicator</a></td><td>(Self)</td><td>Adds a Volume indicator chart.</td></tr><tr><td><a href="FinanceChart.addWilliamR.htm">addWilliamR</a></td><td>(Self)</td><td>Adds a William %R indicator chart.</td></tr><tr><td><a href="MultiChart.MultiChart.htm">MultiChart</a></td><td>MultiChart</td><td>Creates a new <a href="MultiChart.htm">MultiChart</a> object.</td></tr><tr><td><a href="MultiChart.addChart.htm">addChart</a></td><td>MultiChart</td><td>Adds a <a href="BaseChart.htm">BaseChart</a> object (or its subclass such as <a href="PieChart.htm">PieChart</a>, <a href="XYChart.htm">XYChart</a>, <a href="PolarChart.htm">PolarChart</a>, <a href="AngularMeter.htm">AngularMeter</a> or <a href="LinearMeter.htm">LinearMeter</a>) into the multi-chart.</td></tr><tr><td><a href="MultiChart.getChart.htm">getChart</a></td><td>MultiChart</td><td>Gets the specified chart in the MultiChart.</td></tr><tr><td><a href="MultiChart.getChartCount.htm">getChartCount</a></td><td>MultiChart</td><td>Gets the number of charts in the MultiChart.</td></tr><tr><td><a href="MultiChart.setMainChart.htm">setMainChart</a></td><td>MultiChart</td><td>Sets the chart that provides the plot area for plot area features.</td></tr><tr><td><a href="BaseChart.setSize.htm">setSize</a></td><td>BaseChart</td><td>Sets the size of the chart, exclusive of the drop shadow (if any).</td></tr><tr><td><a href="BaseChart.getWidth.htm">getWidth</a></td><td>BaseChart</td><td>Gets the width of the chart.</td></tr><tr><td><a href="BaseChart.getHeight.htm">getHeight</a></td><td>BaseChart</td><td>Gets the height of the chart.</td></tr><tr><td><a href="BaseChart.getAbsOffsetX.htm">getAbsOffsetX</a></td><td>BaseChart</td><td>Gets the x offset of the chart relative to the outermost <a href="MultiChart.htm">MultiChart</a> container.</td></tr><tr><td><a href="BaseChart.getAbsOffsetY.htm">getAbsOffsetY</a></td><td>BaseChart</td><td>Gets the y offset of the chart relative to the outermost <a href="MultiChart.htm">MultiChart</a> container.</td></tr><tr><td><a href="BaseChart.setBackground.htm">setBackground</a></td><td>BaseChart</td><td>Sets the background color, border color and 3D border effect of the chart.</td></tr><tr><td><a href="BaseChart.setRoundedFrame.htm">setRoundedFrame</a></td><td>BaseChart</td><td>Sets the border style of the chart to rounded corners.</td></tr><tr><td><a href="BaseChart.setThickFrame.htm">setThickFrame</a></td><td>BaseChart</td><td>Sets a thick frame around the chart.</td></tr><tr><td><a href="BaseChart.setDropShadow.htm">setDropShadow</a></td><td>BaseChart</td><td>Adds a drop shadow to the chart.</td></tr><tr><td><a href="BaseChart.setBorder.htm">setBorder</a></td><td>BaseChart</td><td>Sets the border color of the chart.</td></tr><tr><td><a href="BaseChart.setWallpaper.htm">setWallpaper</a></td><td>BaseChart</td><td>Uses the image from the specified file or resource as the wallpaper to fill the background of the chart.</td></tr><tr><td><a href="BaseChart.setBgImage.htm">setBgImage</a></td><td>BaseChart</td><td>Uses the image from the specified file or resource as the background image of the chart.</td></tr><tr><td><a href="BaseChart.setSearchPath.htm">setSearchPath</a></td><td>BaseChart</td><td>Sets the search path for loading image files.</td></tr><tr><td><a href="BaseChart.setSearchPath2.htm">setSearchPath2</a></td><td>BaseChart</td><td>Sets the ClassLoader for loading images.</td></tr><tr><td><a href="BaseChart.setSearchPath3.htm">setSearchPath3</a></td><td>BaseChart</td><td>Search for image files using the ServletContext and ServletRequest.</td></tr><tr><td><a href="BaseChart.setSearchPath4.htm">setSearchPath4</a></td><td>BaseChart</td><td>Search for image files using a URL as the base path.</td></tr><tr><td><a href="BaseChart.setResource.htm">setResource</a></td><td>BaseChart</td><td>Assigns a resource ID to a memory block to allow it to be referenced using a resource path.</td></tr><tr><td><a href="BaseChart.setResource2.htm">setResource2</a></td><td>BaseChart</td><td>Assigns a resource ID to a <a href="DrawArea.htm">DrawArea</a> object to allow it to be referenced using a resource path.</td></tr><tr><td><a href="BaseChart.setTransparentColor.htm">setTransparentColor</a></td><td>BaseChart</td><td>Specifies a certain color to mean transparent when creating a raster image output.</td></tr><tr><td><a href="BaseChart.setAntiAlias.htm">setAntiAlias</a></td><td>BaseChart</td><td>Controls whether anti-alias is used when drawing lines, shapes and text.</td></tr><tr><td><a href="BaseChart.addTitle.htm">addTitle</a></td><td>BaseChart</td><td>Adds a title at the top center of the chart.</td></tr><tr><td><a href="BaseChart.addTitle2.htm">addTitle2</a></td><td>BaseChart</td><td>Adds a title to the chart.</td></tr><tr><td><a href="BaseChart.addLegend.htm">addLegend</a></td><td>BaseChart</td><td>Adds a legend box to the chart.</td></tr><tr><td><a href="BaseChart.addLegend2.htm">addLegend2</a></td><td>BaseChart</td><td>Adds a legend box to the chart with grid layout.</td></tr><tr><td><a href="BaseChart.getLegend.htm">getLegend</a></td><td>BaseChart</td><td>Gets the <a href="LegendBox.htm">LegendBox</a> object representing the legend box in the chart.</td></tr><tr><td><a href="BaseChart.layoutLegend.htm">layoutLegend</a></td><td>BaseChart</td><td>Lays out and gets the <a href="LegendBox.htm">LegendBox</a> object representing the legend box in the chart.</td></tr><tr><td><a href="BaseChart.getDrawArea.htm">getDrawArea</a></td><td>BaseChart</td><td>Retrieves the internal <a href="DrawArea.htm">DrawArea</a> object that is used to draw the chart.</td></tr><tr><td><a href="BaseChart.addText.htm">addText</a></td><td>BaseChart</td><td>Adds a text box to the chart.</td></tr><tr><td><a href="BaseChart.addTable.htm">addTable</a></td><td>BaseChart</td><td>Adds a CDML table to the chart.</td></tr><tr><td><a href="BaseChart.addLine.htm">addLine</a></td><td>BaseChart</td><td>Adds a line to the chart.</td></tr><tr><td><a href="BaseChart.addExtraField.htm">addExtraField</a></td><td>BaseChart</td><td>Adds an array of text to be used as an extra field in various places.</td></tr><tr><td><a href="BaseChart.addExtraField2.htm">addExtraField2</a></td><td>BaseChart</td><td>Adds an array of numbers/dates to be used as an extra field in various places.</td></tr><tr><td><a href="BaseChart.setColor.htm">setColor</a></td><td>BaseChart</td><td>Change the color at the specified position in the palette.</td></tr><tr><td><a href="BaseChart.setColors.htm">setColors</a></td><td>BaseChart</td><td>Change the colors in the palette.</td></tr><tr><td><a href="BaseChart.setColors2.htm">setColors2</a></td><td>BaseChart</td><td>Change the colors in the palette, starting from the specified position in the palette.</td></tr><tr><td><a href="BaseChart.getColor.htm">getColor</a></td><td>BaseChart</td><td>Gets the color at the specified position of the palette.</td></tr><tr><td><a href="BaseChart.adjustBrightness.htm">adjustBrightness</a></td><td>BaseChart</td><td>Creates a color that is a darkened or brightened version of the given color.</td></tr><tr><td><a href="BaseChart.halfColor.htm">halfColor</a></td><td>BaseChart</td><td>Creates a color that is half the intensity of the given color.</td></tr><tr><td><a href="BaseChart.dashLineColor.htm">dashLineColor</a></td><td>BaseChart</td><td>Creates a dash line color.</td></tr><tr><td><a href="BaseChart.patternColor.htm">patternColor</a></td><td>BaseChart</td><td>Creates a pattern color using an array of colors as the bitmap pattern.</td></tr><tr><td><a href="BaseChart.patternColor2.htm">patternColor2</a></td><td>BaseChart</td><td>Creates a pattern color by using the image from the specified file or resource as the pattern.</td></tr><tr><td><a href="BaseChart.linearGradientColor.htm">linearGradientColor</a></td><td>BaseChart</td><td>Creates a two-point linear gradient color.</td></tr><tr><td><a href="BaseChart.linearGradientColor2.htm">linearGradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point linear gradient color.</td></tr><tr><td><a href="BaseChart.radialGradientColor.htm">radialGradientColor</a></td><td>BaseChart</td><td>Creates a two-point radial gradient color.</td></tr><tr><td><a href="BaseChart.radialGradientColor2.htm">radialGradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point radial gradient color.</td></tr><tr><td><a href="BaseChart.gradientColor.htm">gradientColor</a></td><td>BaseChart</td><td>Creates a two-point linear gradient color.</td></tr><tr><td><a href="BaseChart.gradientColor2.htm">gradientColor2</a></td><td>BaseChart</td><td>Creates a multi-point linear gradient color.</td></tr><tr><td><a href="BaseChart.setDefaultFonts.htm">setDefaultFonts</a></td><td>BaseChart</td><td>Sets the defaults for normal, bold, italic and bold-italic fonts.</td></tr><tr><td><a href="BaseChart.setFontTable.htm">setFontTable</a></td><td>BaseChart</td><td>Sets an entry in the font table to the specified font name.</td></tr><tr><td><a href="BaseChart.formatValue.htm">formatValue</a></td><td>BaseChart</td><td>Formats a number/date using the ChartDirector formatting syntax as is in <a href="paramsub.htm">Parameter Substitution and Formatting</a>.</td></tr><tr><td><a href="BaseChart.setNumberFormat.htm">setNumberFormat</a></td><td>BaseChart</td><td>Sets the characters used for thousand separator, decimal point, and negative sign.</td></tr><tr><td><a href="BaseChart.setMonthNames.htm">setMonthNames</a></td><td>BaseChart</td><td>Sets the names of the months for date/time formatting purposes.</td></tr><tr><td><a href="BaseChart.setWeekDayNames.htm">setWeekDayNames</a></td><td>BaseChart</td><td>Sets the names of the week days for date/time formatting purposes.</td></tr><tr><td><a href="BaseChart.setAMPM.htm">setAMPM</a></td><td>BaseChart</td><td>Sets the names to be used to denote morning and afternoon.</td></tr><tr><td><a href="BaseChart.layout.htm">layout</a></td><td>BaseChart</td><td>Perform auto-scaling of the axes (if any) and compute the positions of the various objects in the chart.</td></tr><tr><td><a href="BaseChart.makeImage.htm">makeImage</a></td><td>BaseChart</td><td>Generates the chart as a java.awt.Image object.</td></tr><tr><td><a href="BaseChart.enableVectorOutput.htm">enableVectorOutput</a></td><td>BaseChart</td><td>This method is deprecated. It has no effect and may be removed in future versions of ChartDirector.</td></tr><tr><td><a href="BaseChart.setOutputOptions.htm">setOutputOptions</a></td><td>BaseChart</td><td>Sets output format options for the next chart output.</td></tr><tr><td><a href="BaseChart.makeChart.htm">makeChart</a></td><td>BaseChart</td><td>Generates the chart image and save it into a file.</td></tr><tr><td><a href="BaseChart.makeChart2.htm">makeChart2</a></td><td>BaseChart</td><td>Generates the chart as an image in memory.</td></tr><tr><td><a href="BaseChart.makeChart3.htm">makeChart3</a></td><td>BaseChart</td><td>Generates the chart in internal format and return a <a href="DrawArea.htm">DrawArea</a> object to allow adding custom drawings on top of the chart.</td></tr><tr><td><a href="BaseChart.makeSession.htm">makeSession</a></td><td>BaseChart</td><td>Generates the chart as an image, saves it to a session variable and returns query parameters for loading the image.</td></tr><tr><td><a href="BaseChart.makeTmpFile.htm">makeTmpFile</a></td><td>BaseChart</td><td>Generates the chart as an image and save it to a temporary file, and automatically remove old files.</td></tr><tr><td><a href="BaseChart.initDynamicLayer.htm">initDynamicLayer</a></td><td>BaseChart</td><td>Initializes a dynamic layer for drawing text and shapes.</td></tr><tr><td><a href="BaseChart.removeDynamicLayer.htm">removeDynamicLayer</a></td><td>BaseChart</td><td>Removes the dynamic layer if any.</td></tr><tr><td><a href="BaseChart.getHTMLImageMap.htm">getHTMLImageMap</a></td><td>BaseChart</td><td>Generates an HTML image map to define hot spots and tooltips for the chart.</td></tr><tr><td><a href="BaseChart.getJsChartModel.htm">getJsChartModel</a></td><td>BaseChart</td><td>Gets the <a href="jschartmodel.htm">Javascript Chart Model</a> for passing to <a href="WebChartViewer.setChartModel.htm">WebChartViewer.setChartModel</a> for the purpose of supporting track cursors in a web application.</td></tr><tr><td><a href="BaseChart.getChartMetrics.htm">getChartMetrics</a></td><td>BaseChart</td><td>Gets the chart metrics for passing to <a href="WebChartViewer.setChartMetrics.htm">WebChartViewer.setChartMetrics</a>  to support viewports for web applications.</td>
</tr>
</table>
</div>

</div>
<hr class="separator"><div class="copyright">&copy; 2022 Advanced Software Engineering Limited. All rights reserved.</div>
</body>
</HTML>
